<div class="standard left">
<?php

// 1. generate first contact form
// 2. validate it against data
// 3. populate it
// 4. echo it
	
	$options = array();

	$visitation_datetime = trim($this->caseInfo['visitation_date']." ".$this->caseInfo['visitation_time']);
	if(empty($visitation_datetime) || $visitation_datetime == "0000-00-00 00:00:00")
		$visitation_datetime = date("Y-m-d g:i A");
	$options['visitation_datetime'] = $visitation_datetime;
	
	$service_datetime = trim($this->caseInfo['service_date']." ".$this->caseInfo['service_time']);
	if(empty($service_datetime) || $service_datetime == "0000-00-00 00:00:00")
		$service_datetime = date("Y-m-d g:i A");
	$options['service_datetime'] = $service_datetime;

	$form = new FirstContactForm( $options );
	
	$form->populate( $this->caseInfo );
		
	echo $form->render_with_template('firstcontactform.xhtml');
	//echo $form;
 ?>
</div>